package com.miya.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
    * 资源表
    */
@Data
@EqualsAndHashCode(callSuper=true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_menu")
public class Menu extends BaseEntity implements Serializable {
    /**
     * 上级菜单ID
     */
    @TableField(value = "parent_id")
    private Long parentId;

    /**
     * 菜单/按钮名称
     */
    @TableField(value = "menu_name")
    private String menuName;

    /**
     * 菜单URL
     */
    @TableField(value = "`path`")
    private String path;

    /**
     * 对应 Vue组件
     */
    @TableField(value = "component")
    private String component;

    /**
     * 权限标识
     */
    @TableField(value = "perms")
    private String perms;

    /**
     * 图标
     */
    @TableField(value = "icon")
    private String icon;

    /**
     * 类型 0菜单 1按钮
     */
    @TableField(value = "`type`")
    private String type;

    /**
     * 排序
     */
    @TableField(value = "order_num")
    private Integer orderNum;

    private static final long serialVersionUID = 1L;
}